<!--登录弹窗开始-->
<style>
	.user-bg {padding: 0 1rem;}
	.reg-w{width: 100%;}
	.reg-w form .reg-group {position: relative;border-bottom: 1px solid #f1f1f1;margin-top: 0.5rem;}
	.reg-w form .form-m-t{margin-top:0.25rem!important;}
	.reg-w form .btn-sub {width: 100%;border-radius: 4px;font-size: 0.375rem;padding: 0.3rem 0;margin: 0.75rem 0;}
	.btn-brand {display: inline-block;background: #ff5f00;color: #fff!important;border: none;cursor: pointer;}
	.reg-w form .reg-group label {display: inline-block;height: 1.125rem;line-height: 1.125rem;width: 20%;box-sizing: border-box;}
	.reg-w form .reg-group .reg-control {display: inline-block;width: 80%;height: 1.125rem; font-size: 0.35rem;border: none; background: none;}
	.reg-w form .reg-group .w150 {width: 50% !important;}
	.m-hi {width: 30%;height: 1.125rem;cursor: pointer;}
	.reg-ts {display: block;overflow: hidden;}
	.reg-od {margin-bottom: 0.25rem;overflow: hidden;}
	.reg-od span{color: #ff5f00;}
	.reg-ts .rega-fl {text-align: left;float: left;}
	.reg-ts .rega-fr {text-align: right;float: right;}
	.reg-dl {text-align: center;}
	.reg-dl h5 {font-size: 0.35rem;margin: 0 0 0.5rem; color: #999;padding-top: 0.25rem;width: 100%;}
	.reg-dl li {display: inline-flex;;overflow: hidden;margin: 0 0.375rem;font-size: 1rem;line-height: 1rem;}
	.reg-dl .reg-wx {color: #23CC21;}
	.reg-dl .reg-qq {color: #2AA2E5;}
	input::-webkit-input-placeholder {color: #ccc;}
	
	.reg-od span{
		cursor: pointer;
	}
	.show-detail{
		display: block !important;
	}
	.no-show{
		display: none !important;
	}
	.reg-bt{
		cursor: pointer;
		width: 100%;
		text-align: center;
	}
	.reg-w form .btn-sub{
		border-radius: 35px;
	}
	.find-bt{
		width: 100%;
		display: flex;
		align-items: center;
		justify-content: space-around;
	}
	.find-bt span{
		cursor: pointer;
		display: inline-block;
	}
	.reg-w form .reg-group .reg-control{
		width: 78%;
	}
	.m-hi{
		position: absolute
	}
	@media (min-width:820px){
		
	}
	@media (max-width:820px){
	    .reg-w form .reg-group label {display: none;}
		/* .reg-w form .reg-group .reg-control {width: 100% !important;padding: 0 0.25rem;} */
		.reg-w form .reg-group .w150 {width: 70% !important;}
		.user-bg {padding: 0 0.1rem;}
		.reg-dl h5 ,.reg-w form .reg-group .reg-control{font-size: 0.375rem;}
		.reg-w form .reg-group .l-icon{
			width: 0.7rem;
		}
	}
</style>
<div id="member">
   <div class="user-bg">
	   <!-- 登录 -->
		<div class="reg-w mac_login">
			<form class="mac_login_form" method="post" id="fm-login" action="">
				<div class="reg-group login_form_group form-m-t">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-user.png" >
					<input data-placeholder="user_place_zh" type="text" name="user_name" class="mac_u_name reg-control" placeholder="{:lang_web('user_place_zh')}">
				</div>
				<div class="reg-group login_form_group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-pwd.png" >
					<input data-placeholder="user_place_mm" type="password" name="user_pwd" class="mac_u_pwd reg-control" placeholder="{:lang_web('user_place_zh')}">
				</div>
				{if condition="$GLOBALS['config']['user']['login_verify'] eq 1"}
				<div class="reg-group login_form_group">
					<label data-lang="user_yanzhengma">验证码</label>
					<input type="text" data-placeholder="user_place_yanzm" class="mac_u_verify reg-control w150" name="verify" placeholder="lang_web">
					<img data-title='string_mac_djsx' class="mac_verify_img fr m-hi" src="{:url('verify/index')}" onClick="this.src=this.src+'?'"  alt="{:lang_web('string_mac_djsx')}" />
				</div>
				{/if}
				<input type="button" data-value='user_ljdl' data-value="btn_ljdl" class="login_form_submit btn-brand btn-sub" value="{:lang_web('user_ljdl')}">
			</form>
			<div class="reg-ts">
				<div class="reg-od">
					<a class="rega-fl" data-lang="user_wjmm2">{:lang_web('user_wjmm2')}</a>
					<a class="rega-fr" > 
						<span data-lang="user_myzh">{:lang_web('user_myzh')}</span> 
						<span data-lang="user_zczh">{:lang_web('user_zczh')}</span></a>
				</div>
				<div class="reg-dl">
				{if condition="$GLOBALS['config']['connect']['qq']['status'] eq 1"}
				<h5 data-lang="user_bdfsdl">{:lang_web('user_bdfsdl')}</h5>
				{elseif condition="$GLOBALS['config']['connect']['weixin']['status'] eq 1"}
				<h5 data-lang="user_bdfsdl">{:lang_web('user_bdfsdl')}</h5>       
				{/if}
					<ul>
						{if condition="$GLOBALS['config']['connect']['weixin']['status'] eq 1"}
						<li><a class="reg-wx" href="{:url('user/oauth')}?type=weixin"><i class="iconfont lishi">&#xe639;</i></a></li>
						{/if}
						{if condition="$GLOBALS['config']['connect']['qq']['status'] eq 1"}
						<li><a class="reg-qq" href="{:url('user/oauth')}?type=qq"><i class="iconfont yonghu">&#xe637;</i></a></li>
						{/if}
					</ul>
				</div>
			</div> 
		</div>
		<!-- 注册 -->
		<div class="reg-w mac_register no-show">
			<form method="post" id="fm_reg" action="">
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-user.png" >
					<input data-placeholder="user_place_dlzh" type="text" id="user_name_reg" name="user_name" class="reg-control" placeholder="{:lang_web('user_place_dlzh')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-pwd.png" >
					<input data-placeholder="user_place_mm" type="password" id="user_pwd_reg" name="user_pwd" class="reg-control" placeholder="{:lang_web('user_place_mm')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-pwd.png" >
					<input data-placeholder="user_place_querenmm" type="password" id="user_pwd2_reg" name="user_pwd2" class="reg-control" placeholder="{:lang_web('user_place_querenmm')}">
				</div>
				
				{if condition="$GLOBALS['config']['user']['reg_verify'] neq 0"}
				<div class="reg-group">
					<label data-lang="user_yanzhengma">{:lang_web('user_yanzhengma')}</label>
					<input type="text" data-lang="user_place_yanzm" class="reg-control w150" id="verify" name="verify" placeholder="{:lang_web('user_place_yanzm')}">
					<img class="fr m-hi" id="verify_img" src="{:url('verify/index')}" onClick="this.src=this.src+'?'"   />
				</div>
				{/if}

				{if condition="$user_config.reg_phone_sms neq 0"}
				<input type="hidden" name="ac" value="phone">
				<div class="reg-group">
					<label data-lang="user_sjhm">{:lang_web('user_sjhm')}</label>
					<input data-placeholder="user_place_shouji" type="text" class="reg-control w150" id="to_reg" name="to" placeholder="{:lang_web('user_place_shouji')}">
					<input type="button" data-value="btn_fsyzm" class="fr m-hi reg-yzm" id="btn_send_sms_reg" value="{:lang_web('btn_fsyzm')}"/>
				</div>
				<div class="reg-group">
					<label data-lang="user_yanzhengma">{:lang_web('user_yanzhengma')}</label>
					<input type="text" data-placeholder="user_place_yanzm" class="reg-control" id="code_reg" name="code" placeholder="{:lang_web('user_place_yanzm')}">
				</div>
				{elseif condition="$user_config.reg_email_sms neq 0"}
				<input type="hidden" name="ac" value="email">
				<div class="reg-group">
					<label data-lang="user_yxdz">{:lang_web('user_yxdz')}</label>
					<input type="text" data-placeholder="user_place_email" class="reg-control w150" id="to_reg" name="to" placeholder="{:lang_web('user_place_email')}">
					<input type="button" data-value="btn_fsyzm" class="fr m-hi reg-yzm" id="btn_send_sms" value="{:lang_web('btn_fsyzm')}"/>
				</div>
				<div class="reg-group">
					<label data-lang="user_yanzhengma">{:lang_web('user_yanzhengma')}</label>
					<input type="text" data-placeholder="user_place_yanzm" class="reg-control" id="code_reg" name="code" placeholder="{:lang_web('user_place_yanzm')}">
				</div>
				{/if}
	
				{if condition="$user_config.reg_verify neq 0"}
				<div class="reg-group">
					<label data-lang="user_yanzhengma"> {:lang_web('user_yanzhengma')}</label>
					<input type="text" data-placeholder="user_place_yanzm" class="reg-control w150" id="verify_reg" name="verify" placeholder="{:lang_web('user_place_yanzm')}">
					<img class="fr m-hi" id="verify_img_reg" src="{:url('verify/index')}" onClick="this.src=this.src+'?'"  />
				</div>
				{/if}
				<input type="button" data-value="btn_lijizhuce" id="btn_submit_reg" class="btn-brand btn-sub" value="{:lang_web('btn_lijizhuce')}">
			</form>
			<div class="reg-bt" data-lang="user_qudl">
				{:lang_web('user_qudl')}
		 	</div>
		</div>
		<!-- 预留问题找回密码 -->
		<div class="reg-w mac_find no-show">
			<form method="post" id="fm-find" action="">
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-user.png" >
					<input type="text" data-placeholder="user_place_dlzh" id="user_name" name="user_name" class="reg-control" placeholder="{:lang_web('user_place_dlzh')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-p.png" >
					<input type="text" data-placeholder="user_place_mbwentyi" id="user_question" name="user_question" class="reg-control" placeholder="{:lang_web('user_place_mbwentyi')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-d.png" >
					<input type="text" data-placeholder="user_place_mbdaan" id="user_answer" name="user_answer" class="reg-control" placeholder="{:lang_web('user_place_mbdaan')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-pwd.png" >
					<input type="password" data-placeholder="user_place_mm" id="user_pwd" name="user_pwd" class="reg-control" placeholder="{:lang_web('user_place_mm')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-pwd.png" >
					<input type="password" data-placeholder="user_place_querenmm" id="user_pwd2" name="user_pwd2" class="reg-control" placeholder="{:lang_web('user_place_querenmm')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-i.png" >
					<input type="text" data-placeholder="user_place_yanzm" class="reg-control w150" id="verify" name="verify" placeholder="{:lang_web('user_place_yanzm')}">
					<img class="fr m-hi" src="{:url('verify/index')}" onClick="this.src=this.src+'?'"  />
				</div>
				<input type="button" data-value="btn_ljzh" id="btn_submit_find" class="btn-brand btn-sub" value="{:lang_web('btn_ljzh')}">
			</form>
			<div class="find-bt">
				<span class="pass-1" data-lang="user_zjdengl">{:lang_web('user_zjdengl')}</span>
				<span class="pass-2" data-lang="user_youxzh">{:lang_web('user_youxzh')}</span>
				<span class="pass-3" data-lang="user_shoujizh">{:lang_web('user_shoujizh')}</span>
		 	</div>
		</div>
		<!-- 邮箱手机找回密码 -->
		<div class="reg-w mac_find_msg no-show">
			<div class="find-email">
				<form method="post" id="fm_msg" action="">
					<input id="find-ac" type="hidden" name="ac" value="email">
					<div class="reg-group">
						<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-user.png" >
						<input type="text" data-placeholder="user_place_email" id="to_msg" name="to" class="reg-control" placeholder="{:lang_web('user_place_email')}">
					</div>
					<div class="reg-group">
						<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-i.png" >
						<input type="text" data-placeholder="user_place_yanzm" class="reg-control w150" id="verify_msg" name="verify" placeholder="{:lang_web('user_place_yanzm')}">
						<img class="fr m-hi" src="{:url('verify/index')}" onClick="this.src=this.src+'?'" />
					</div>
					<input type="button" data-value="btn_fsyzm" id="btn_send_find_msg" class="btn-brand btn-sub" value="{:lang_web('btn_fsyzm')}">
				</form>
			</div>
			<form method="post" id="fm2-msg" action="">
				<input id="find-ac-path" type="hidden" name="ac" value="email">
				<h4 data-lang="user_yanzxinxi">{:lang_web('user_yanzxinxi')}</h4>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-i.png" >
					<input type="text" data-placeholder="user_place_yanzm"  id="code_msg" name="code" class="reg-control" placeholder="请输入{$param['ac_text']}收到的验证码">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-pwd.png" >
					<input type="password" data-placeholder="user_place_mm" class="reg-control w150" id="user_pwd_msg" name="user_pwd" placeholder="{:lang_web('user_place_mm')}">
				</div>
				<div class="reg-group">
					<img class="l-icon" src="{:MAC_BASE_PATH}/template/default/images/member/login-pwd.png" >
					<input type="password" data-placeholder="user_place_querenmm" class="reg-control w150" id="user_pwd2_msg" name="user_pwd2" placeholder="{:lang_web('user_place_querenmm')}">
				</div>
				<input type="button" data-value="btn_czmm" id="btn_submit_findmsg" class="btn-brand btn-sub" value="{:lang_web('btn_czmm')}">
			</form>
			<div class="find-bt">
				<span class="pass-1" data-lang="user_zjdengl">{:lang_web('user_zjdengl')}</span>
				<span class="pass-2" data-lang="user_youxzh">{:lang_web('user_youxzh')}</span>
				<span class="pass-3" data-lang="user_shoujizh">{:lang_web('user_shoujizh')}</span>
		 	</div>
		</div>
	</div>
</div>
<!--登录弹窗结束-->
<script>
	var lang=localStorage.getItem('lang')
	language_pack.loadProperties(lang);
	var findAc=''
	// 忘记账号
	$('.rega-fl').click(function(){
		$('.pop_top').html('<h2 data-lang="user_ylwtzhmm">预留问题找回密码</h2>')
		$('.mac_login').addClass('no-show')
		$('.mac_find').removeClass('no-show')
		language_pack.loadProperties(lang);
	})
	// 切换注册
	$('.rega-fr').click(function(){
		$('.pop_top').html('<h2 data-lang="user_yhzhuce">用户注册</h2>')
		$('.mac_login').addClass('no-show')
		$('.mac_register').removeClass('no-show')
		language_pack.loadProperties(lang);
	})
	// 注册切换登录
	$('.reg-bt').click(function(){
		$('.pop_top').html('<h2 data-lang="user_yhdl">用户登录</h2>')
		$('.mac_login').removeClass('no-show')
		$('.mac_register').addClass('no-show')
		language_pack.loadProperties(lang);
	})
	// 找回密码切换登录
	$('.pass-1').click(function(){
		$('.pop_top').html('<h2  data-lang="user_yhdl">用户登录</h2>')
		$('.mac_login').removeClass('no-show')
		$('.mac_find').addClass('no-show')
		$('.mac_find_msg').addClass('no-show')
		language_pack.loadProperties(lang);
	})
	// 切换邮箱找回密码
	$('.pass-2').click(function(){
		$('.pop_top').html('<h2 data-lang="user_yxzhmm">邮箱找回密码</h2>')
		$('.mac_find').addClass('no-show')
		$('.mac_find_msg').removeClass('no-show')

		$('#to_msg').attr('placeholder',MAC.GetLang('string_login_yx'))

		$('#find-ac').attr('value','email')
		$('#find-ac-path').attr('value','email')
		findAc="email"
		language_pack.loadProperties(lang);
	})
	// 切换手机号找回密码
	$('.pass-3').click(function(){
		$('.pop_top').html('<h2 data-lang="user_sjhzhmm">手机号找回密码</h2>')
		$('.mac_find').addClass('no-show')
		$('.mac_find_msg').removeClass('no-show')
		$('#to_msg').attr('placeholder',MAC.GetLang('string_login_sjh'))
		
		$('#find-ac').attr('value','phone')
		$('#find-ac-path').attr('value','phone')
		findAc="phone"
		language_pack.loadProperties(lang);
	})
	// 注册
	var countdown=60;
	function settime(val) {
		if (countdown == 0) {
			val.removeAttribute("disabled");
			val.value=MAC.GetLang('string_login_yzm');
			countdown = 60;
			return true;
		} else {
			val.setAttribute("disabled", true);
			val.value= MAC.GetLang('string_login_cxfs')+"(" + countdown + ")";
			
			countdown--;
		}
		setTimeout(function() {settime(val) },1000)
	}
	$("body").bind('keyup',function(event) {
		if(event.keyCode==13){ $('#btnLogin').click(); }
	});
	$('#btn_send_sms_reg').click(function(){
		var ac = $('input[name="ac"]').val();
		var to = $('input[name="to"]').val();
		if(ac=='email') {
			var pattern = /^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/;
			var ex = pattern.test(to);
			if (!ex) {
				alert(MAC.GetLang('string_login_yxgscw'));
				
				return;
			}
		}else if(ac=='phone') {
			var pattern=/^[1][0-9]{10}$/;
			var ex = pattern.test(to);
			if (!ex) {
				alert(MAC.GetLang('string_login_sjhcw')) 
				return;
			}
		}else{
			alert(MAC.GetLang('string_login_cscw'));
			return;
		}
		settime(this);
		var data = $("#fm_reg").serialize();
		$.ajax({
			url: "{:url('user/reg_msg')}",
			type: "post",
			dataType: "json",
			data: data,
			beforeSend: function () {
				//开启loading
			},
			success: function (r) {
				alert(r.msg);
			},
			complete: function () {
				//结束loading
			}
		});
	});
	$('#btn_submit_reg').click(function() {
		if ($('#user_name_reg').val()  == '') { 
			
			alert(MAC.GetLang('string_login_sryh')); 
			$("#user_name_reg").focus(); 
			return false; 
		}
		if ($('#user_pwd_reg').val()  == '') { 
			alert(MAC.GetLang('string_login_srmm')); 
			$("#user_pwd_reg").focus(); 
			return false; 
		}
		if ($('#verify_reg').val()  == '') { 
			alert(MAC.GetLang('string_login_sryzm')); 
			$("#verify_reg").focus(); 
			return false; 
		}
		$.ajax({
			url: "{:url('user/reg')}",
			type: "post",
			dataType: "json",
			data: $('#fm_reg').serialize(),
			beforeSend: function () {
				$("#btn_submit_reg").css("background","#fd6a6a").val("loading...");
			},
			success: function (r) {
				alert(r.msg);
				if(r.code==1){
					location.href="{:url('user/login')}";
				}
				else{
					$('#verify_img_reg').click();
				}
			},
			complete: function () {
				$("#btn_submit_reg").css("background","#fa4646").val(MAC.GetLang('string_login_ljzc'));
			}
		});
	});
	// 预留问题找回密码
	$("#btn_submit_find").click(function(msg) {
		var data = $("#fm-find").serialize();
		var input = $("#fm-find").serializeArray();
		var pass1 = $("#pass1").val();
		var pass2 = $("#pass2").val();
		var inputName = new Array();
		inputName['user_name'] =  MAC.GetLang('string_login_dlzh');
		inputName['user_question'] = MAC.GetLang('string_login_zhwt');
		inputName['user_answer'] =  MAC.GetLang('string_login_zhda');
		inputName['user_pwd'] =  MAC.GetLang('string_login_mima');
		inputName['user_pwd2'] = MAC.GetLang('string_login_qrmm');
		inputName['verify'] =  MAC.GetLang('string_login_yzm1');
		var is = false;
		var err = '';
		$.each(input,function(name,field) {
			if (field.value == '') {
				is = true;
				err = inputName[field.name] + MAC.GetLang('string_login_bnwk');
				return false;
			}
		})
		if (is) {
			alert(err);
			return false;
		}
		if (pass1 != pass2) {
			alert(MAC.GetLang('string_login_mmbyz'));
			return false;
		}
		$.ajax({
			url: "{:url('user/findpass')}",
			type: "post",
			dataType: "json",
			data: data,
			beforeSend: function () {
				//开启loading
				//$(".loading_box").css("display","block");
				$("#btn_submit").css("background","#fd6a6a").val("loading...");
			},
			success: function (r) {
				alert(r.msg);
				if(r.code==1){
					location.href="{:url('user/login')}";
				}
			},
			complete: function () {
				//结束loading
				//$(".loading_box").css("display","none");
				$("#btn_submit").css("background","#fa4646").val(MAC.GetLang('string_tj'));
			}
		});
	})
	// 邮箱和手机找回密码
	$('#btn_send_find_msg').click(function() {
		if ($('#to_msg').val()  == '') { 
			if(lang==1){
				alert(`Please enter${findAc=='email'?'Email':'Phone'}！`); 
			}else{
				alert(`请输入${findAc=='email'?'邮箱':'手机号'}！`); 
			}
			$("#to_msg").focus(); return false; 
		}
		$.ajax({
			url: "{:url('user/findpass_msg')}",
			type: "post",
			dataType: "json",
			data: $('#fm_msg').serialize(),
			beforeSend: function () {
				$("#btn_send_find_msg").css("background","#fd6a6a").val("loading...");
			},
			success: function (r) {
				alert(r.msg);
			},
			complete: function () {
				MAC.GetLang('')
				if(lang==1){
					$("#btn_send_find_msg").css("background","#fa4646").val(`send ${findAc=='email'?'email':'code'}`);
				}else{
					$("#btn_send_find_msg").css("background","#fa4646").val(`发送${findAc=='email'?'邮件':'验证码'}`);
				}
				
			}
		});
	});
	$('#btn_submit_findmsg').click(function() {
			if ($('#to_msg').val()  == '') { 
				if(lang==1){
					alert(`Please enter${findAc=='email'?'Email':'Phone'}！`); 
				}else{
					alert(`请输入${findAc=='email'?'邮箱':'手机号'}！`); 
				}
				$("#to_msg").focus(); return false; 
			}

			if ($('#code_msg').val()  == '') { 
				alert(lang==1?'':'Please enter the verification code!'); 
				$("#code_msg").focus(); 
				return false; 
			}
			if ($('#user_pwd_msg').val()  == '') { 
				alert(lang==1?'':'Please enter a new password!'); 
				$("#user_pwd_msg").focus(); 
				return false; 
			}
			if ($('#user_pwd2_msg').val()  == '') { 
				alert(MAC.GetLang('string_login_qrmm1')); 
				$("#user_pwd2_msg").focus(); 
				return false; 
			}
			if ($('#user_pwd_msg').val()  != $('#user_pwd2_msg').val() ) { 
				alert(MAC.GetLang('string_login_mmbyz')); 
				$("#user_pwd2_msg").focus(); 
				return false; 
			}

			var data= {ac:findAc,to:$('#to_msg').val(),code:$('#code_msg').val(),user_pwd:$('#user_pwd_msg').val(),user_pwd2:$('#user_pwd2_msg').val()};
			$.ajax({
				url: "{:url('user/findpass_reset')}",
				type: "post",
				dataType: "json",
				data: data,
				beforeSend: function () {
					$("#btn_submit_findmsg").css("background","#fd6a6a").val("loading...");
				},
				success: function (r) {
					alert(r.msg);
				},
				complete: function () {
					
					$("#btn_submit_findmsg").css("background","#fa4646").val(MAC.GetLang('btn_czmm'));
				}
			});
		});
</script>
